package com.esri.core.portal;

import java.util.EnumSet;
import java.util.Iterator;

/* loaded from: classes.dex */
public enum PortalMode {
    SINGLE_TENANT("singletenant"),
    MULTI_TENANT("multitenant");
    
    String a;

    PortalMode(String str) {
        this.a = str;
    }

    @Override // java.lang.Enum
    public String toString() {
        return this.a;
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public static PortalMode a(String str) {
        Iterator it = EnumSet.allOf(PortalMode.class).iterator();
        while (it.hasNext()) {
            PortalMode portalMode = (PortalMode) it.next();
            if (portalMode.toString().equals(str)) {
                return portalMode;
            }
        }
        return null;
    }
}
